import Dao.BookDaoImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AppForinstanceBook {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("application.xml");
        BookDaoImpl bookDao = ctx.getBean("bookDao", BookDaoImpl.class);
        bookDao.save();
    }
}
